package com.huajiao.management_system.util;


import org.apache.poi.ss.usermodel.*;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.time.LocalDateTime;


public class ExcelUtil {
    private static final String PATH = "C:\\Users\\99275\\Desktop\\download\\";
    public static boolean export(String typeName,String Time, String keyword,String format) throws IOException {

        String fileName = typeName+Time+ LocalDateTime.now()+format;
        File file = new File(PATH+fileName);
        Workbook workbook = WorkbookFactory.create(file);
        Sheet sheet = workbook.createSheet(typeName);
        Row row = sheet.createRow(0);
        row.createCell(0).setCellValue("");
return true;
   }
}
